package com.tongshu.miaosha.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tongshu.miaosha.domain.Goods;
import com.tongshu.miaosha.domain.MiaoshaGoods;
import com.tongshu.miaosha.vo.GoodsVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface GoodsDao extends BaseMapper<Goods> {
    List<GoodsVo> listGoods();
    GoodsVo getGoodsVoByGoodsId(long goodsId);

    int reduceStock(MiaoshaGoods goods);
}
